<!DOCTYPE html>
<svg id="svg" viewBox="0 0 100 100" style="width: 200px; height: 0.1px; display: block">
  <rect width="100" height="100" fill="green"/>
</svg>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(_ => {
  svg.style.height = "200px";
}, true);
</script>
